package com.caoji.client;

import com.caoji.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Description： User: caoji
 * Date: 2020/11/27
 * Time: 19:13
 */
@FeignClient(value = "user-service",fallback = UserFeign.class)
public interface feiginClient {
    @GetMapping("/user/list/{id}")
     User findall(@PathVariable("id")String id);
}
